package Szadoban;

import java.awt.Image;

import javax.swing.ImageIcon;

/**
 * Class describing destination area.
 */
public class Destination extends Element {

	/**
	 * Specifies whether the box is over the destination area
	 */
	private boolean isReached;
	
	/**
	 * Destination element constructor
	 * @param x
	 * @param y
	 */
	public Destination(int x, int y){
		super(x,y);
		Image image = new ImageIcon(this.getClass().getResource("/destination.png")).getImage();
		this.setImage(image);
	
		isReached = false;
	}
}
